package com.example.exception;

/**
 * 注冊用戶時候的異常枚舉
 * @author jiaqi.liu
 *
 */
public enum ResultEnum {
	NAME_MAX_EXP(-101,"姓名長度不超過10"),
	NAME_MIN_EXP(-101,"姓名長度不能少于5"),
	AGE__MAX_EXP(-101,"年齡不能大於100"),
	AGE__MIN_EXP(-101,"年齡不能小於0"),
	EMAIL_EXP(-101,"郵箱格式不正確");
	
	private int status;
	
	private String msg;
	
	private ResultEnum(int status,String msg){
		
		this.status=status;
		this.msg=msg;
	}

	public int getStatus() {
		return status;
	}
	

	public String getMsg() {
		return msg;
	}
	


    

}
